package com.spaceobj.chess.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.Contact;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class OpenApiConfig {
    
    @Bean
    public OpenAPI chessOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("Chess Server API")
                        .description("国际象棋服务器API文档")
                        .version("1.0")
                        .contact(new Contact()
                                .name("SpaceObj")
                                .email("spaceobj@163.com")));
    }
} 